<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %}</title>
    <script src="/static/buyer/js/jquery.min.js"></script>
    <link rel="stylesheet" href="/static/buyer/css/bootstrap.css"/>
    <script src="/static/buyer/js/bootstrap.js"></script>
    <link rel="stylesheet" href="/static/buyer/css/index.css">
    <link rel="stylesheet" href="/static/buyer/css/footer.css">
    {% block style %}
    {% endblock %}
</head>
<body>

<!--首页头部登陆导航-->
<nav class="navbar navbar-default">
    <div class="container-fluid container">
        <div class="navbar-header ">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>

            </button>
            <a class="navbar-brand" href="/buyer/index/">欢迎来到天天生鲜</a>
        </div>
        <!-- 所有的登陆注销项导航栏类目 -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                {% if request.COOKIES.b_userid %}
                    <li><a href="#">{{ request.COOKIES.b_username }}</a></li>
                    <li><a href="/buyer/logout/">退出</a></li>
                {% else %}
                    <li><a href="/buyer/bootstrap_login/">登录</a></li>
                    <li><a href="/buyer/bootstrap_register/">注册</a></li>
                {% endif %}
                <li><a href="/buyer/user_center_info/">用户中心</a></li>
                <li><a href="/buyer/bootstrap_cart/">我的购物车</a></li>
                <li><a href="/buyer/myorders/">我的订单</a></li>
            </ul>
        </div>
    </div>
</nav>
{% block ys %}
{% endblock %}

{% block content %}
{% endblock %}

<div class="footer">
    <div class="foot_link">
        <a href="#">关于我们</a>
        <span>|</span>
        <a href="#">联系我们</a>
        <span>|</span>
        <a href="#">招聘人才</a>
        <span>|</span>
        <a href="#">友情链接</a>
    </div>
    <p>CopyRight © 2016 北京天天生鲜信息技术有限公司 All Rights Reserved</p>
    <p>电话：010-****888 京ICP备*******8号</p>
</div>
{% block js %}{% endblock %}

</body>
</html>